package experiment;
//员工信息：员工编码、姓名、性别、出生年月、所在部门
public class Employee {
    public String coding;
    public String name;
    public String sex;
    public String birth;
    public Department department;
    public Employee(String coding,String name,String sex,String birth,Department department){
        this.coding = coding;
        this.name = name;
        this.sex = sex;
        this.birth = birth;
        this.department = department;
    }
    public String getCoding(){
        return coding;
    }
    public String getName(){
        return name;
    }
    public String getSex(){return sex;}
    public String getBirth(){
        return birth;
    }
    public Department getDepartment(){
        return department;
    }
    public void setCoding(String coding){
        this.coding = coding;
    }
    public void setSex(String sex){
        this.sex = sex;
    }
    public void setBirth(String birth){
        this.birth = birth;
    }
    public void setDepartment(Department department){
        this.department = department;
    }
    @Override
    public String toString() {
        return "Employee{" + "coding = " + coding + ", name = " + name + ", sex = " + sex + ", birth = " + birth + ", department = " + department + '}';
    }
}
